#ifndef __CONVERT_H__
#define __CONVERT_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iconv.h>

#ifndef ICONV_CONST
# define ICONV_CONST const
#endif

iconv_t convert_open(const char *from, const char *to);
int     convert(iconv_t, char*, int, char *, int);
void    convert_close(iconv_t);
int     convert_string(const char *from, const char *to, char *dst, int dstlen, char *src, int srclen);


#endif

